Robust String Matching in O ( √ N + M ) Quantum Queries Chris

نویسنده

  • CHRIS LOMONT
چکیده

Finding a match of an M item pattern against an N item text is a common computing task, useful in string matching and image matching. The best classical (i.e., non-quantum) string matching algorithms, which are Θ(N +M) time and query complexity, are improved in many cases in this paper using Grover’s quantum searching algorithm. Specifically, given quantum oracles that return the j symbol in the text or pattern in constant time, we demonstrate a quantum string matching algorithm which returns a pattern match if it exists with query complexity O( √ N + M) and time complexity O( √ N logN + M log(MN) ). Variations of this algorithm allow wildcard matches, can return the number of matches, can return the nearest match in case of no exact matches, as well as the first or last such match, each with a slight change in complexity. We are also better than the best quantum string matching algorithms in many cases.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Robust String Matching in O ( √

Finding a match of an M item pattern against an N item text is a common computing task, useful in string matching and image matching. The best classical (i.e., non-quantum) string matching algorithms, which are Θ(N +M) time and query complexity, are improved in many cases in this paper using Grover’s quantum searching algorithm. Specifically, given quantum oracles that return the jth symbol in ...

متن کامل

Quantum Pattern Matching

Finding a match (or nearest match) of an M item pattern against an N item text is a common computing task, useful in string matching and image matching. The best classical (i.e., non-quantum) string matching algorithms, which are Θ(N+M) time and query complexity, are improved in many cases in this paper using Grover’s quantum searching algorithm. Specifically, given quantum oracles that return ...

متن کامل

Quantum Pattern Matching

We propose a quantum algorithm for closest pattern matching which allows us to search for as many distinct patterns as we wish in a given string (database), requiring a query function per symbol of the pattern alphabet. This represents a significant practical advantage when compared to Grover’s search algorithm as well as to other quantum pattern matching methods [1], which rely on building spe...

متن کامل

A Quantum Algorithm for Closest Pattern Matching

We propose a quantum algorithm for closest pattern matching which allows us to search for as many distinct patterns as we wish in a given string (database), requiring a query function per symbol of the pattern alphabet. This represents a significant practical advantage when compared to Grover’s search algorithm as well as to other quantum pattern matching methods [7], which rely on building spe...

متن کامل

Faster Longest Common Extension Queries in Strings over General Alphabets

Longest common extension queries (often called longest common prefix queries) constitute a fundamental building block in multiple string algorithms, for example computing runs and approximate pattern matching. We show that a sequence of q LCE queries for a string of size n over a general ordered alphabet can be realized in O(q log log n + n log n) time making only O(q + n) symbol comparisons. C...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003